/*
 * Copyright 2020-2030 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

package com.gitee.minimalismstyle.fresh.sys.api.model

import com.gitee.minimalismstyle.fresh.common.data.beetl.model.LongModel
import com.gitee.minimalismstyle.fresh.common.data.commons.annotation.Unique
import io.swagger.annotations.*


/**
 * 字典Model
 * @author maochao
*/
@ApiModel(value = "字典")
open class SysKeyValue: LongModel(){

    /**
    * 键
    */
    @ApiModelProperty(value = "键")
    var key: String? = null


    /**
     * 键路径
     */
    @Unique("键")
    @ApiModelProperty(value = "键路径")
    var keyPath: String? = null

    /**
    * 值
    */
    @ApiModelProperty(value = "值")
    var value: String? = null

    /**
    * 描述
    */
    @ApiModelProperty(value = "描述")
    var description: String? = null

    /**
    * 父ID
    */
    @ApiModelProperty(value = "父ID")
    var parentId: Long? = null

    /**
    * 排序
    */
    @ApiModelProperty(value = "排序")
    var sort: Int? = null

    /**
    * 是否有效
    */
    @ApiModelProperty(value = "是否有效")
    var enabled: Int? = null

    /**
    * 备用字段1
    */
    @ApiModelProperty(value = "备用字段1")
    var attr1: String? = null

    /**
    * 备用字段2
    */
    @ApiModelProperty(value = "备用字段2")
    var attr2: String? = null

    /**
    * 备用字段3
    */
    @ApiModelProperty(value = "备用字段3")
    var attr3: String? = null

    /**
    * 备用字段4
    */
    @ApiModelProperty(value = "备用字段4")
    var attr4: String? = null

    /**
    * 备用字段5
    */
    @ApiModelProperty(value = "备用字段5")
    var attr5: String? = null
}